<div class="main">
    <div class="alert alert-info">
        <h4>
            <i class="fa fa-info-circle"></i>
            说明: 提现申请,需要管理员手动打款,打款后标记对应的提现申请处理成功<br>
        </h4>
        <p style="color: red">&nbsp;&nbsp;&nbsp;&nbsp;商户结算数据涉及钱款操作，请认真审核，谨慎操作！</p>
    </div>
    <form action="" method="post" class="form-horizontal form">
        <div class="panel panel-default">
            <div class="table-responsive panel-body">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th style="width:15%;">申请时间</th>
                        <th style="width:12%;">提现金额</th>
                        <th style="width:12%;">手续费</th>
                        <th style="width:12%;">到帐金额</th>
                        <th style="width:15%;">账号信息</th>
                        <th style="width:12%;">所属门店</th>
                        <th style="width:12%;">状态</th>
                        <th style="width:10%;">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list $item}
                    <tr>
                        <td>
                            {if $item['dining_mode']==1}
                            <span class="label label-info">店内</span>
                            <br/>
                            {/if}
                            {if $item['dining_mode']==2}
                            <span class="label label-warning">外卖</span>
                            <br/>
                            {/if}
                            {if $item['dining_mode']==4}
                            <span class="label label-success">快餐</span>
                            <br/>
                            {/if}
                            {php echo date("Y-m-d H:i:s", $item['dateline'])}

                        </td>
                        <td>
                            {$item['price']}元
                        </td>
                        <td>
                            {$item['charges']}元
                        </td>
                        <td>
                            {$item['successprice']}元
                        </td>
                        <td>
                            {if !empty($users[$item['uid']]['mobile'])}<span class="label label-info">电话:{$users[$item['uid']]['mobile']}</span>{/if}
                            <br/>
                            {if !empty($users[$item['uid']]['pay_account'])}<span class="label label-warning">{$users[$item['uid']]['pay_account']}</span>{/if}
                        </td>
                        <td>
                            {$stores[$item['storeid']]['title']}
                        </td>
                        <td>
                            {if $item['status'] == 1}
                            <span class="label label-success">已提现</span>
                            {else}
                            <span class="label label-danger">待审核</span>
                            {/if}
                        </td>
                        <td>
                            {if $item['status'] == 0}
                            <a class="btn btn-success btn-sm" href="{php echo $this->createWebUrl('stores', array('id' => $item['id'], 'op' => 'setstatus'))}" title="管理" onclick="return confirm('确认操作吗？');return false;"><i class="fa fa-cog"></i> 审核</a>
                            {/if}
                        </td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
                {$pager}
            </div>
        </div>
    </form>
</div>